package work.mediway.mdm.biz.entity.patient;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 患者主索引对应表
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2020/12/16
 */
@ApiModel(value = "患者主索引对应表")
@Data
@TableName(value = "Rel_Patient")
public class RelPatient {

    /**
     * 医疗机构内部患者索引
     */
    @TableId(value = "REPAT_HosPatientID", type = IdType.INPUT)
    @ApiModelProperty(value = "医疗机构内部患者索引")
    private String hosPatientId;

    /**
     * 医疗机构编号
     */
    @TableField(value = "BusinessFieldCode")
    @ApiModelProperty(value = "业务域")
    private String businessFieldCode;

    /**
     * 平台患者主索引
     */
    @TableField(value = "REPAT_PatientID")
    @ApiModelProperty(value = "平台患者主索引")
    private String patPatientId;

    /**
     * 关联索引ID
     */
    @TableField(value = "REPAT_LinkID")
    @ApiModelProperty(value = "关联索引ID")
    private String linkPatientId;

    /**
     * 最后更新日期
     */
    @TableField(value = "UpdateDate")
    @ApiModelProperty(value = "最后更新日期")
    private String lastUpdateDate;

    /**
     * 最后更新时间
     */
    @TableField(value = "UpdateTime")
    @ApiModelProperty(value = "最后更新时间")
    private String lastUpdateTime;
}